﻿CREATE TABLE [dbo].[FC_EntityUOM] (
    [IdEntityF] INT NOT NULL,
    [IdUOM]     INT NOT NULL,
    CONSTRAINT [PK_FC_EntityUOM] PRIMARY KEY CLUSTERED ([IdEntityF] ASC, [IdUOM] ASC),
    CONSTRAINT [FK_FC_EntityUOM_FC_Entity] FOREIGN KEY ([IdEntityF]) REFERENCES [dbo].[FC_Entity] ([IdEntityF]),
    CONSTRAINT [FK_FC_EntityUOM_FC_UOM] FOREIGN KEY ([IdUOM]) REFERENCES [dbo].[FC_UOM] ([IdUOM]),
    CONSTRAINT [FK_FC_EntityUOM_FC_UOM1] FOREIGN KEY ([IdUOM]) REFERENCES [dbo].[FC_UOM] ([IdUOM])
);

